<template>
  <view class="content">
    <view>
      <button @click="navTo('menu')" :value="t32itle">菜单</button>
      <button @click="navTo('order')">订单</button>
      <button @click="navTo('my')">我的</button>
      <input type="text" v-model="value" />
    </view>
  </view>
</template>

<script setup>
import { ref} from "vue";
import { onLoad, onShow, onHide } from '@dcloudio/uni-app'; 

const navTo = (page) => {
  uni.switchTab({ url: `/pages/${page}/index` })
}

onShow(() => { uni.hideTabBar() })
onHide(() => { uni.showTabBar() })
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
